import pandas as pd
from sklearn.preprocessing import StandardScaler,MinMaxScaler

#假设股票
data = pd.DataFrame(
    {
        "APPLE":[150.50,152.3,49.20,155.40],
        "GOOGLE":[2700.50,2695.3,2725.20,2735.40],
        "TESLA":[700.50,710.3,720.20,730.40],
    }
)
#创建标准和归一化
scaler_standard = StandardScaler()
sclaer_minmax = MinMaxScaler()

data_columns = ['APPLE', 'GOOGLE', 'TESLA']
print(data_columns)

data_standardized = scaler_standard.fit_transform(data)
data_standardized = pd.DataFrame(data_standardized,columns = data.keys())
print(data_standardized)
